#! /usr/bin/zsh
set -x
set -e

# 这个脚本用来编译bochs2.7，脚本在wsl2-ubuntu24.04上执行正常
#sudo apt-get install -y build-essential libx11-dev libxrandr-dev libgtk2.0-dev libsdl1.2-dev libwxgtk3.2-dev xorg-dev libreadline-dev

pushd ./bochs-2.7
./configure --with-x11 --with-x --enable-all-optimizations --enable-readline  --enable-debugger-gui --enable-x86-debugger --enable-a20-pin --enable-fast-function-calls --enable-debugger --enable-x86-64

make -j32
sudo make install

popd

